package home.projects.recipes.chapthree;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ChapThreeRunnerII {

   public static void main(final String[] args) {
      ApplicationContext ctx = new ClassPathXmlApplicationContext(
            "home/projects/recipes/config/context-chapthree.xml");
      SequenceGeneratorService service =
         (SequenceGeneratorService)ctx.getBean("service");
      System.out.println(service.getSequence("SQ1"));
      System.out.println(service.getSequence("SQ1"));
      System.out.println(service.getSequence("SQ1"));
   }

}
